<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>文件发送列表</title>
        <link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
        <link href="/widget/iconfont/iconfont.css" rel="stylesheet" />
        {cssjs}
        <link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
        <style>
            #attachment_box .attachment_one_del {
                display: inline-block;
                margin-right: 15px;
                color: #c00;
            }
            #attachment_box .attachment_one {
                display: inline-block;
                margin-right: 5px;
                color: #6C9EC0;
            }
        </style>
    </head>

    <body>
        <div class="container-fluid larry-wrapper">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12">
                    <!--头部搜索-->
                    <section class="panel panel-padding">
                        <form class="layui-form">
                            <div class="layui-form">
                                <div class="layui-inline">
                                    <div class="layui-input-inline">
                                        <select class="" name="type">
                                            <option value='1'>内部</option>
                                            <option value='2'>外部</option>
                                        </select> 
                                    </div>
                                </div>

                            </div>
                        </form>
                    </section>

                    <!--列表-->
                    <section class="panel panel-padding">
                        <div class="group-button">
                            <button class="layui-btn layui-btn-small modal-iframe" id="btn_add">
                                <i class="iconfont">&#xe649;</i> 发送
                            </button>
                            <button class="layui-btn layui-btn-small layui-btn-danger ajax-all" id="btn_del">
                                <i class="iconfont">&#xe626;</i> 删除
                            </button>
                            <button class="layui-btn layui-btn-small layui-btn-warm ajax-all" id="btn_out">
                                <i class="iconfont">&#xe62e;</i> 导出
                            </button>
                            <button class="layui-btn layui-btn-small layui-btn-warm ajax-all" id="btn_turn_to">
                                <i class="iconfont">&#xe62e;</i> 转发
                            </button>
                        </div>
                        <div class="layui-form">
                            <table id="example" class="layui-table lay-even">
                                <thead>
                                    <tr>
                                        <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check" lay-skin="primary"></th>
                                        <th width="100">文件名</th>
                                        <th width="200">文件简介</th>
                                        <th width="100">发送时间</th>
                                        <th width="100">签收情况</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <!-- START list -->
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="checkbox" lay-skin="primary" value="{id}"/>
                                        </td>
                                        <th>{title}</th>
                                        <th class="period_id">{description}</th>
                                        <th>{uploadtime}</th>
                                        <th><a class="readers_info" data-id="{id}">{readers}/{send_num}</th>
                                        
                                    </tr>
                                    <!-- END list -->
                                </tbody>
                            </table>
                        </div>

                        <div class="pagination" id="page">
                            {page}
                        </div>
                    </section>
                </div>
                <section class="panel panel-padding send_open" style="display: none;max-height: 370px">
                    <form id="form1" class="layui-form layui-form-pane" method="post" data-dotype="a" action="/html/file/srv/file_send.php">
                        <div class="layui-form-item">
                            <label class="layui-form-label">文件名</label>
                            <div class="layui-input-block">
                                <input type="text" placeholder="文件名" id="title" name="title" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">文件简介</label>
                            <div class="layui-input-block">
                                <input type="text" placeholder="文件简介" id="description" name="description" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item" style="border:1px solid #e6e6e6;border-color: rgb(230, 230, 230);">
                            <label class="layui-form-label" style="border-color:#fff;">收件人</label>
                            <div class="layui-input-block" style="min-height: 38px;padding-left: 10px;border-left: 1px solid #e6e6e6;border-color: #fff;padding-right: 110px;position: relative">
                                <div class="div_content"></div>
                                <input name="copy_to_id" id="accept_id" value="" type="text" style="display: none;">
                                <div class="div_button" style="position: absolute;top:20%;right: 0px">
                                    <button class="layui-btn layui-btn-small layui-btn-danger" type="button" id="select_accept"><i class="layui-icon"></i></button>
                                    <button class="layui-btn layui-btn-small" id="del_accept"  type="button"><i class="layui-icon"></i></button> 
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">附&nbsp;&nbsp;&nbsp;件：</label>
                            <div class="layui-input-block">
                                <input type="file" id="upload_attachment" name="upload_attachment[]" multiple="true" lay-type="file" class="layui-upload-file"> 
                                <div id="attachment_box">
                                </div>
                                <input name="attachment" id="attachment" type="text" style="display: none;">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">提醒</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="SMS_REMIND[]" value="1" checked="" title="使用内部短信提醒用户">
                                <input type="checkbox" name="SMS_REMIND[]" value="2" title="使用手机短信提醒用户">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" id="btn_save" type="button">立即提交</button>
                                <button type="button" id="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>
                </section>
            </div>
        </div>

        {jsmodel}
        <script type="text/javascript">
            layui.use('file_send');

        </script>
    </body>
</html>
